package com.knowswift.issues.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.knowswift.common.bean.issue.po.SysUser;
import com.knowswift.common.bean.issue.vo.SysUserVo;
import com.knowswift.common.common.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author CTL
 * @create 2025-07-24 16:35
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    List<SysUser> getUserByCustomerId(String customerId);

    Page<SysUserVo> getUsers(@Param("customerId")String customerId, @Param("username")String username, Page<SysUserVo> page);

    SysUser queryByUserName(String username);
    SysUser queryByUserNameNotId(@Param("username")String username,@Param("userId")Long userId);
}
